﻿using System.Reflection;

namespace MemoDb
{
    public class AssignedIdMapper : IdMapper
    {
        public AssignedIdMapper(PropertyInfo property) : base(property)
        {
        }

        public override void SetNewIdIfNeeded(object model)
        {
            
        }

        public override bool IsNew(object model)
        {
            return !TypeStorage.Contains(GetId(model));
        }
    }
}